<?php

namespace common\models;

use Yii;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "{{%ceping_paper}}".
 *
 * @property integer $id
 * @property integer $paperId
 * @property string $paper_name
 * @property integer $weight
 * @property integer $status
 * @property string $created_at
 * @property string $updated_at
 * @property string $res1
 * @property string $res2
 * @property string $res3
 */
class CepingPaper extends \yii\db\ActiveRecord     //试卷信息表
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%ceping_paper}}';
    }
    public function behaviors()
    {
        return [
            'class' => TimestampBehavior::className(),
        ];
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['paperId', 'weight', 'status','cate'], 'integer'],
            [['paper_name'], 'required'],
            [['paper_name', 'res1', 'res2', 'res3'], 'string', 'max' => 80]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'paperId' => '试卷ID',
            'paper_name' => '试卷名',
            'cate'=>'试卷分类',
            'weight' => '权重',
            'status' => 'Status',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'res1' => 'Res1',
            'res2' => 'Res2',
            'res3' => 'Res3',
        ];
    }
}
